home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 001-025 / disk_010 / ls / wildexp.h < prev   
C/C++ Source or Header  |  1992-05-06  |  2KB  |  48 lines

  1. /*
  2. ** The following is an include file for wildexp.c and also
  3. ** for any programs which desire to use findfirst and/or findnext.
  4. ** This file is not needed for programs that are only using
  5. ** iswild and wildexp.
  6. **
  7. ** Written by:  Rick Schaeffer
  8. **              E. 13611 26th Ave
  9. **              Spokane, Wa.  99216
  10. **              Compuserve ID: 70120,174
  11. **              Bytenet ID: ricks.
  12. */
  13.  
  14. #ifndef LIBRARIES_DOS_H
  15. #include <libraries/dos.h>
  16. #endif
  17.  
  18. #ifndef LIBRARIES_DOSEXTENS_H
  19. struct Msg { int dummy; };      /* make Lattice shut-up about this */
  20. #include <libraries/dosextens.h>
  21. #endif
  22.  
  23. /*
  24. ** The following is the structure used by findfirst and findnext.
  25. ** A pointer to this structure MUST be passed to findfirst, which
  26. ** fills it in.  Subsequent calls to findnext must pass a pointer
  27. ** to the structure which was filled in by findfirst.  The actual
  28. ** file name found is in the "fname" element of the structure after
  29. ** each call.  NOTE: The last two elements of the structure refer
  30. ** to AmigaDos specific items.  Users of findfirst and findnext may,
  31. ** if they choose, define the "find" structure such that the last
  32. ** two elements (flock and fp) are defined as "long".  In that fashion,
  33. ** you can eliminate the need to #include the "dos" information.  Of
  34. ** course, if access to the FileInfoBlock is desired, you must use
  35. ** the structure as defined below.
  36. */
  37. struct find {
  38.     char    path[128];  /* path portion of the argument */
  39.     char    name[32];   /* name portion of the argument */
  40.     char    fpath[128]; /* FULL path to actual file found */
  41.                         /* NOTE: fpath is currently not filled in.  To
  42.                            be added later */
  43.     char    fname[32];  /* actual name of file found */
  44.     BPTR    flock;      /* lock for the directory containing the file */
  45.     struct FileInfoBlock *fp;   /* pointer to fib of file */
  46.     };
  47.  
  48.